import request from '@/utils/request'

// 用户登录
export function userLoginUsingPOST(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

// 用户注册
export function userRegisterUsingPOST(data) {
  return request({
    url: '/user/register',
    method: 'post',
    data
  })
}

// 获取当前用户信息
export function getCurrentUserUsingGET() {
  return request({
    url: '/user/get/login',
    method: 'get'
  })
}

// 用户退出登录
export function userLogoutUsingPOST() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}

// 获取用户总数
export function getUserCountUsingGET() {
  return request({
    url: '/user/count',
    method: 'get'
  })
}
